﻿using System;
using System.Collections.Generic;
using System.Text;
using ProtoBuf;

namespace Demo
{
    [ProtoContract]
    public class Test
    {


        [ProtoMember(1)]
        public int Id
        {
            get;
            set;
        }


        [ProtoMember(2)]
        public Dictionary<String,String> data
        {
            get;
            set;
        }


        public override string ToString()
        {
            String str = Id + ":";
            foreach (var d in data)
            {
                str += ((d.Key + ","+d.Value)+";");
            }
            return str;
        }

    }  

}
